[#include "/WEB-INF/pages/common/taglibs.ftl"]
			[#--<div class="tableoptions">
				<a class="radius3" href="[@c.url value='/manage/User_create.action'/]"><span>新&nbsp;&nbsp;&nbsp;&nbsp;建</span></a>
		    	<!--<button class="deletebutton radius3" title="删除所选" tableid="userListTable">删除所选</button> &nbsp;
		        <select class="radius3">
		        	<option value="">Show All</option>
		            <option value="">Rendering Engine</option>
		            <option value="">Platform</option>
		        </select> &nbsp;
		        <button class="radius3">Apply Filter</button>-->
		    </div>
		    [@demo.tableDisplayer id="id" ajaxPage="true" renderTo="${renderTo}" property="userList" pagesize=4 page="/manage/User_list.action" name="FreemarkerTable" config="/WEB-INF/component/table/template-stdtable-custompage.ftl" bundle="messageSource"]
		    	[@demo.column name="batch" title="加入" innerHtml="\linput type='button' value='+' /\g" headerClass="addMember" columnClass="span1"/]
		    	[@demo.column name="id" property="id" title="ID" headerClass="span1" columnClass="span1"/]
		    	[@demo.column name="name" property="userName" title="账户" columnClass="span3"/]
		    	[@demo.column name="expireDay" property="expireDay" format="yyyy年MM月dd日" title="到期日" columnClass="span2"/]
		    	[@demo.column name="enabled" property="enabled" format="是:否" title="可用" columnClass="span1"/]
		    	[@demo.column name="locked" property="locked" format="是:否" title="锁定" columnClass="span1"/]
		    	[@demo.column name="isvalid" property="isValid" format="有效:无效" title="有效" columnClass="span1"/]
		    [/@demo.tableDisplayer]
		    <br/>--]
			<div class="contenttitle">
	    		<h2 id="vertical" class="form"><span>用户信息</span></h2>
	    	</div><!--contenttitle-->
	    	<br>[#--${action.backurl}--]
			<form id="memberForm" action="[@c.url value="/manage/Member_${act}.action"][@c.param name="backurl" value="${backUrl}"/][/@c.url]" method="post" class="stdform stdform2 validate">
				<p>
					<label>选择用户: </label>
					<span class="field">
						[#--rel="${action.getValidateMetadata("/manage", "Member_save", "member.user.userName")}" --]
						<select key="single" name="member.user.userName" class="chzn-select chzn-select-deselect" data-placeholder="${action.getText('user.selected.required')}">
							<option value=""></option>
							[#list userList as user]
								<option [#if (member.user.userName)?? && member.user.userName==user.userName]selected="selected"[/#if] value="${user.userName}">${user.userName} - [${user.realName}]</option> 
							[/#list]
			            </select>
              		<span>
              	</p>
				<p>
		        	<label>用户：</label>
		            <span class="field"><input class="smallinput" disabled="disabled" name="member.user.userName" placeholder="请输入长度大于5位的用户名" value="${(member.user.userName)!''}"/></span>
		        </p>
		        [#--<p>
		        	<label>姓名：</label>
		            <span class="field"><input class="smallinput" disabled="disabled" placeholder="真实姓名" name="user.realName" value="${(memberRole.member.user.realName)!''}"/></span>
		        </p>--]
		        <p>
		        	<label>邮箱：</label>
		            <span class="field"><input class="smallinput" readonly="readonly" placeholder="邮箱地址. 格式:xxx@xx.xx" name="member.user.email" value="${(member.user.email)!''}"/></span>
		        </p>
				[#--<p>
		        	<label>性别：</label>
		            <span class="field"><select name="user.gender" disabled="disabled">
							<option value="">未知</option>
									<option value="M" [#if (memberRole.member.user.gender) ?? && memberRole.member.user.gender=='M']selected="selected"[/#if]>男</option>
									<option value="F" [#if (memberRole.member.user.gender) ?? && memberRole.member.user.gender=='F']selected="selected"[/#if]>女</option>
						</select></span>
		        </p>--]
		        <p>
		        	<label>昵称：</label>
		            <span class="field"><input class="smallinput" rel="${action.getValidateMetadata("/manage", "Member_save", "member.nickName")}" placeholder="用户昵称" name="member.nickName" value="${(member.nickName)!''}"/></span>
		        </p>
		        <p>
		        	<label>可用：</label>
		            <span class="field">
		            	<input type="checkbox" name="member.enabled" [#if member?? && member.isEnabled()]checked="checked"[/#if] value="true"/>&nbsp;可用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="member.locked" [#if member?? && member.isLocked()]checked="checked"[/#if] value="true" />&nbsp;锁定&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="checkbox" name="member.isValid" [#if member?? && member.isValid]checked="checked"[/#if]  value="true"/>&nbsp;有效
		            </span>
		        </p>
		        <p>
		        	<label>角色：</label>
		            <span class="field">
		            	[#list roleList as role]
							<input class="smallinput" name="memberRoleList[${role_index}].roleId" type="hidden" value="${role.id}"/>
							<input type="checkbox" name="memberRoleList[${role_index}].enabled" [#list memberRoleList as r][#if r.roleId==role.id && r.isEnabled()]checked="checked"[/#if][/#list] value="true"/>&nbsp;&nbsp;&nbsp;&nbsp;${role.title}<br>
						[/#list]
					</span>
		        </p>
			    <p class="stdformbutton">
			    	<input type="hidden" name="member.id" value="${(memberRole.memberId)!''}" />
					<input type="hidden" name="id" value="${id!''}" />
			      	<button class="submit ">提&nbsp;&nbsp;交</button>
			        <input type="reset" value="重&nbsp;&nbsp;置" class="reset radius2" />
			        <a class="anchorbutton button_alert" href="${action.backurl}" style="margin-left:6px;background-color: rgb(247, 247, 247); border-color: rgb(204, 204, 204); color: rgb(51, 51, 51);"><span style="background-color: rgb(255, 255, 255); border-color: rgb(221, 221, 221);">返&nbsp;&nbsp;回</span></a>
			    </p>
			</form>
			<div id="delete-confirm" style="display:none" title="会员删除">
				<p>会员删除后将无法恢复.您确认删除吗？</p>
			</div>
